<?php include_partial('global/navbar') ?>
<br/><br/>
<div class="next_head">
    <div class="wrap"><a href="<?php echo url_for('account/backlend')?>">回款中</a>
        <a href="<?php echo url_for("account/inbids")?>" >投标中</a>
        <a href="<?php echo url_for("account/returnedend")?>">已回款</a>
        <a href="<?php echo url_for("account/bidfail")?>" class="on">投标失败</a>
       
    </div>
</div>

<div class="content_nav">
        <div class="tag_nav wrap">
            
          <?php if($pager->getNbResults() > 0):?>

            <div class="col-xs-12 pd-n">
                <hr />
                <table class="table table-hover ">
                    <thead>
                        <tr>
                            <th>借款标题</th>
                            <th>借入者</th>
                            <th>年利率</th>
                            <th>有效/投标金额</th>
                            <th>状态</th>
                        </tr>
                    </thead>
                    <tbody>
                    <?php foreach ($pager->getResults() as $one):?>
                            <?php $one_result = $one->getLoan(); ?>
                            <?php $loan_record = $one->getLoanRecordMoney($user_id); ?>
                            <tr>
                                <td><a href="<?php echo url_for('project/index?id='.$one_result->getId())?>" title="<?php echo $one_result->getTitle()?>"><?php echo $one_result->getTitle()?></a></td>
                                <td><?php echo $one_result->getUserName()?></td>
                                <td><?php echo round($one_result->getMoneyRate(),2)?> %</td>
                                <td><?php echo number_format($loan_record['loan_money'],2)?> / <?php echo number_format($loan_record['enter_money'],2)?></td>
                                <td><?php echo $one_result->getStatusName()?></td>
                            </tr>
                    <?php endforeach;?>
                    </tbody>
                </table>
            </div>
            <?php else:?>
            <div class="nodata">
                您没有 投标失败 的投资列表
            </div>
        </div>
    <?php endif;?>
</div>
<script>
    $("#10003,#10006").addClass("on");
</script>
